# coding=utf-8
__author__ = 'Fonny'


from flask import Flask, url_for, render_template
app = Flask(__name__)

@app.route('/')
def index():
    return u'Hello World!'

# 注意, route 的变量必须和对应函数的参数一致
@app.route('/login/<username>')
def login(username):
    return u'你好 %s' % username

@app.route('/test/<sContent>')
def contents(sContent):
	return render_template('_index.html', content=sContent)


if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')
